GameGlobal.canvas = wx.createCanvas();

const windowInfo = wx.getWindowInfo ? wx.getWindowInfo() : wx.getSystemInfoSync();

canvas.width = windowInfo.screenWidth;
canvas.height = windowInfo.screenHeight;

export const SCREEN_WIDTH = windowInfo.screenWidth;
export const SCREEN_HEIGHT = windowInfo.screenHeight;

export const FIGHTERS_MAX = 14; // 出战席最大棋子数量
// 棋子
export const FIGHTERS_PADDING = 40; // 出战席内边距
export const FIGHTER_SPACE = 4; // 出战席棋子间距

let chess_width_and_space = (SCREEN_WIDTH - FIGHTERS_PADDING * 2) / FIGHTERS_MAX

export const CHESS_WIDTH = chess_width_and_space - FIGHTER_SPACE;  // 55
export const CHESS_HEIGHT = CHESS_WIDTH * 82 / 55;

export const PREPARATION_AREA_HEIGHT = CHESS_HEIGHT + FIGHTER_SPACE * 2; // 备战席高度